﻿using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SAICAPPWEB.Service
{
    public class Factory<T> where T : class, new()
    { 
        private static IKernel kernel = new StandardKernel(new ServiceModule());
        public static T GetService()
        { 
            return (T)kernel.GetService(typeof(T));
        }
    }
}